package dataMining.TEST;

import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

/**
 * @author: cuiH
 * Date: 13-10-7
 */
public class SetTest {
    public static void main(String[] args) {
        Set<String> set = new HashSet();
        int[] m1;
        int[] m2;
        int[] m3;
        int[] m4;
        m1 = new int[]{1, 2};
        m2 = new int[]{1};
        m3 = new int[]{1, 2};
        m4 = new int[]{1, 2, 3};
        if(Arrays.equals(m1, m3)){
            System.out.println("ok");
        }
        set.add(String.valueOf(m1));
        set.add(String.valueOf(m2));
        set.add(String.valueOf(m3));
        set.add(String.valueOf(m4));
        System.out.println("size="+ set.size() );
    }
}
